export default class bounced2 {
    palette(prompt,kg,integral,btnTxt) {
        return ({
            width: '668rpx',
            height: '764rpx',
            background: 'rgba(0,0,0,0)',
            views: [
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/bouncedBg2.png',
                    css: {
                      width: '668rpx',
                      height: '658rpx',
                      top: '106rpx'
                    },
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/logo.png',
                    css: [{
                      width: '168rpx',
                      height: `${logoheight}rpx`,
                    },common]
                },
                // {
                //     type: 'text',
                //     text: prompt,
                //     css: [{
                //         fontSize: '48rpx',
                //         top: `${logoheight + 80}rpx`,
                //         color:'rgba(51,5,150,0.75)',
                //     },common]
                // },
                {
                    type: 'text',
                    text: prompt,
                    css: [{
                        fontSize: '48rpx',
                        top: `${logoheight + 75}rpx`,
                        color:'#ffe604',
                        shadow: '0rpx 6rpx 5rpx #330596'
                    },common]
                },
                // {
                //     type: 'text',
                //     text: kg,
                //     css: [{
                //         fontSize: '72rpx',
                //         top: `${logoheight + 170}rpx`,
                //         color:'rgba(51,5,150,0.75)',
                //     },common]
                // },
                {
                    type: 'text',
                    text: kg,
                    css: [{
                        fontSize: '72rpx',
                        top: `${logoheight + 165}rpx`,
                        color:'#ffe604',
                        shadow: '0rpx 6rpx 5rpx #330596'
                    },common]
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/rectBg2.png',
                    css: [{
                      width: '447rpx',
                      height: '80rpx',
                      top: `${logoheight + 295}rpx`,
                    },common],
                },
                {
                    type: 'text',
                    text: integral,
                    css:[{
                        fontSize: '38rpx',
                        top: `${logoheight + 310}rpx`,
                        color:'#fff',
                    },common]
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/bouncedItemBtn2.png',
                    css: [{
                      width: '398rpx',
                      height: '94rpx',
                      bottom: '57rpx',
                    },common],
                },
                {
                    type: 'text',
                    text: btnTxt,
                    css:[{
                        fontSize: '38rpx',
                        bottom: '93rpx',
                        color:'#ec1979',
                    },common]
                },
            ]
        });
    }
}

const logoheight = 168;
const center = 334;
const common = {
    left: `${center}rpx`,
    align: 'center'
};